Skip to main content

Remove points

Filters close points by minimum distance between each other.

🖼️ Image options and parameters of removeClosePoints function

removeClosePoints function is used for filtering points that are close to each other.

This function sorts an array of points by intensity and then calculates euclidean distance between the points. If the distance between points is smaller than the removeClosePoints option the compared point gets removed.

Extrema without removeClosePointsExtrema with removeClosePoints
Image InputImage Output

Kinds of images compatible with algorithm

Image propertyWhat it meansPossible values
bitDepthnumber of bits per channel[8,16]
componentsnumber of components[1]
alphais alpha channel allowedfalse

Parameters and default values

  • points

  • image

  • options

Options

PropertyRequiredDefault value
distanceyes0
kindyes'maximum'
channelno0